Skip to content

Add SQLite backend - #864

Merged
milessabin merged 2 commits into
typelevel:mainfrom
phdoerfler:topic/sqlite-backend
Aug 29, 2026
Merged

Add SQLite backend#864
milessabin merged 2 commits into
typelevel:mainfrom
phdoerfler:topic/sqlite-backend

Conversation

@phdoerfler

@phdoerfler phdoerfler commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Adds SQLite as backend. SQLite does not support lateral joins, so sql-core had to be modified accordingly; that part is split out into #917, which this branch sits on top of. Merge #917 first, and this PR's diff shrinks to the new module and its test data.
This also opens the door for a H2 implementation which suffers from the same limitation as SQLite.

One small note related to the recent CSV-fication: null-ordering, nullable-parent, qualified-names and union-order have no sqlite.sql, so SQLite skips them.

Disclaimer: This work was partially done by an LLM but it was kept on a tight leash snd micromanaged by me.

@phdoerfler
phdoerfler force-pushed the topic/sqlite-backend branch 5 times, most recently from 021ba0d to bd80fa9 Compare July 12, 2026 19:49
@phdoerfler
phdoerfler marked this pull request as ready for review July 12, 2026 19:58
@phdoerfler phdoerfler mentioned this pull request Jul 13, 2026
@phdoerfler
phdoerfler force-pushed the topic/sqlite-backend branch from 5236471 to 8ebaad9 Compare July 14, 2026 12:30
This was referenced Jul 14, 2026
@phdoerfler
phdoerfler force-pushed the topic/sqlite-backend branch from 8ebaad9 to 74fb76a Compare July 17, 2026 13:42
@phdoerfler
phdoerfler force-pushed the topic/sqlite-backend branch 4 times, most recently from 9c6b1b8 to b76b111 Compare August 20, 2026 10:44
@phdoerfler
phdoerfler force-pushed the topic/sqlite-backend branch from b76b111 to 6a7d838 Compare August 28, 2026 11:19
@phdoerfler
phdoerfler force-pushed the topic/sqlite-backend branch 2 times, most recently from 0881c6f to 1e2ddc7 Compare August 29, 2026 07:45
SQL Server emits OFFSET 0 ROWS after a root ORDER BY now, where it only did so in subqueries before.
@phdoerfler
phdoerfler force-pushed the topic/sqlite-backend branch from 1e2ddc7 to 863b6ea Compare August 29, 2026 08:33

@milessabin milessabin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@milessabin
milessabin merged commit 8bfd9f7 into typelevel:main Aug 29, 2026
13 checks passed
@phdoerfler
phdoerfler deleted the topic/sqlite-backend branch August 29, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants